@import 'uview-ui/index.scss';
@import 'static/style/colorui.css';
@import 'static/font/shopro-icon.css';
@import 'uview-ui/iconfont.css';

/* 字体文件 */
@font-face {
  font-family: OPPOSANS;
  src: url('~@/static/font/OPPOSANS-M-subfont.ttf');
}
view {
  --all-dpr: 3;
}
.font-OPPOSANS {
  font-family: OPPOSANS;
}
$theme-color: #6c2881;
$theme-color2: #9520ec;

.hover-bubble {
  transform: scale(0.96);
}
@include font(
  'DIN-Light',
  $IMG_URL + '/uploads/20230509/cbf9b417fc15851ba870990e585e35a2'
);
@include font(
  'DIN-Bold',
  $IMG_URL + '/uploads/20230509/20720c3ac567a72d0ef973d2e703dfae'
);
@include font(
  'DIN-Black',
  $IMG_URL + '/uploads/20230509/b1bbe083029c949c2531dc2679f37c54'
);
@include font(
  'DIN-Medium',
  $IMG_URL + '/uploads/20230509/1bbe3460b053c4f1d67d1f1afecdaa76'
);
/* font-display:swap; */
page {
  -webkit-overflow-scrolling: touch; // ios滑动不流畅
  height: 100%;
  background: #f6f6f6;
  width: 100%;
  font-size: 30rpx;
  font-family: OPPOSANS PingFang;
  word-break: break-all; //英文文本不换行
  white-space: normal;
  color: $u-main-color;

  --theme-color-1: #6c2881;
  --theme-color-2: #9520ec;
  /* 一番赏 福袋 */
  --yfs-silde-time: 7s;

  /* 一番赏 福袋 end */
}
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
  display: none;
}

//超出省略号  使用 @extend .nowrap_ellipsis;
.nowrap_ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/*
* $line第几行隐藏  
* 用法 @include wrap_line(3);
*/
@mixin wrap_line($line: 2) {
  overflow: hidden; //超出文本隐藏
  text-overflow: ellipsis; //溢出省略号显示
  display: -webkit-box; //将对象作为弹性伸缩盒子
  -webkit-box-orient: vertical; //设置伸缩盒子的子元素排列方式-从上到下垂直排列
  -webkit-line-clamp: $line; //这个属性不是css的规范属性，需要组合上面两个属性，数组代表显示的行数,如2,3,4....
}

@media only screen and (-webkit-device-pixel-ratio: 3) {
  view {
    --all-dpr: 3;
  }
}
@media screen and (-webkit-device-pixel-ratio: 2) {
  view {
    --all-dpr: 2;
  }
}

@keyframes shutter-in-bottom {
  0% {
    transform: rotateX(100deg);
    transform-origin: bottom;
    opacity: 0;
  }

  100% {
    transform: rotateX(0);
    transform-origin: bottom;
    opacity: 1;
  }
}
@keyframes scale-filter-center {
  0% {
    transform: scale(0.3);
    filter: drop-shadow(0 0 10rpx rgb(40, 102, 236));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12rpx rgb(243, 247, 13));
  }
}

@keyframes text-focus-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes shutter-in-bottom {
  0% {
    transform: rotateX(100deg);
    transform-origin: bottom;
    opacity: 0;
  }
  100% {
    transform: rotateX(0);
    transform-origin: bottom;
    opacity: 1;
  }
}

@keyframes shutter-in-left {
  0% {
    transform: rotateY(100deg);
    transform-origin: left;
    opacity: 0;
  }
  100% {
    transform: rotateY(0);
    transform-origin: left;
    opacity: 1;
  }
}

@keyframes slide-in-bottom {
  0% {
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes focus-in-contract {
  0% {
    letter-spacing: 1em;
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes rubberband-diagonal-1 {
  0% {
    transform: skew(0deg, 0deg);
  }
  30% {
    transform: skew(25deg, 25deg);
  }
  40% {
    transform: skew(-15deg, -15deg);
  }
  50% {
    transform: skew(15deg, 15deg);
  }
  65% {
    transform: skew(-5deg, -5deg);
  }
  75% {
    transform: skew(5deg, 5deg);
  }
  100% {
    transform: skew(0deg, 0deg);
  }
}
@keyframes tilt-in-top-1 {
  0% {
    transform: rotateY(30deg) translateY(-300px) skewY(-30deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg) translateY(0) skewY(0deg);
    opacity: 1;
  }
}

@keyframes tilt-in-bl {
  0% {
    transform: rotateY(35deg) rotateX(-20deg) translate(-250px, 250px)
      skew(-12deg, -15deg) scale(0.4);
    opacity: 0;
  }
  100% {
    transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg) cale(1);
    opacity: 1;
  }
}

@keyframes tilt-in-br {
  0% {
    transform: rotateY(-35deg) rotateX(-20deg) translate(250px, 250px)
      skew(12deg, 15deg) cale(0.4);
    opacity: 0;
  }
  100% {
    transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg) cale(1);
    opacity: 1;
  }
}
@keyframes bounce-in-left {
  0% {
    transform: translateX(-600px);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  35% {
    transform: translateX(0);
    animation-timing-function: ease-out;
    opacity: 1;
  }
  55% {
    transform: translateX(-68px);
    animation-timing-function: ease-in;
  }
  70% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
  80% {
    transform: translateX(-28px);
    animation-timing-function: ease-in;
  }
  90% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
  95% {
    transform: translateX(-8px);
    animation-timing-function: ease-in;
  }
  99% {
    transform: translateX(0);
    animation-timing-function: ease-out;
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-in-elliptic-right-fwd {
  0% {
    transform: translateX(800px) rotateY(-30deg) scale(0);
    transform-origin: -100% 50%;
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotateY(0) scale(1);
    transform-origin: -1800px 50%;
    opacity: 1;
  }
}
@keyframes slide-in-elliptic-right-bck {
  0% {
    transform: translateX(800px) rotateY(30deg) scale(6.5);
    transform-origin: -100% 50%;
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotateY(0) scale(1);
    transform-origin: 600px 50%;
    opacity: 1;
  }
}
@keyframes shake-tr {
  0% {
    transform: rotate(0deg);
    transform-origin: 100% 0;
  }
  10% {
    transform: rotate(2deg);
  }
  20% {
    transform: rotate(-4deg);
  }
  30% {
    transform: rotate(4deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  70% {
    transform: rotate(4deg);
  }
  80% {
    transform: rotate(-2deg);
  }
  90% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
    transform-origin: 100% 0;
  }
}
@keyframes shake-bl {
  0% {
    transform: rotate(0deg);
    transform-origin: 0% 100%;
  }
  10% {
    transform: rotate(2deg);
  }
  20% {
    transform: rotate(-4deg);
  }
  30% {
    transform: rotate(4deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  70% {
    transform: rotate(4deg);
  }
  80% {
    transform: rotate(-2deg);
  }
  90% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
    transform-origin: 0% 100%;
  }
}

@keyframes scale-in-center {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes slide-in-left {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-left-q {
  0% {
    transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes scale-in-br {
  0% {
    transform: scale(0);
    transform-origin: 100% 100%;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    transform-origin: 100% 100%;
    opacity: 1;
  }
}
